<?php
class CURL{
	
	function __construct(){
		
	}
	
	function get($url){
		$ch = curl_init();
		
		$useragent = 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.1) Gecko/20061204 Firefox/2.0.0.1';
		curl_setopt($ch, CURLOPT_USERAGENT, $useragent);  

		curl_setopt($ch, CURLOPT_URL, $url);
		curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
		curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 0);
		curl_setopt($ch, CURLOPT_VERBOSE, 1);
		$data = curl_exec($ch);
		curl_close($ch);

		return $data;
	}
}
?>